import { Component, ViewChild } from '@angular/core';
import { Platform, Tabs } from 'ionic-angular';
import { Device, InAppBrowser } from 'ionic-native';
import { NavController, NavParams, FabContainer, AlertController } from "ionic-angular";

import { WeChatHomePage } from '../weChatHome/weChatHome';
import { HomePage } from '../home/home';
import { EngineersPage } from '../engineers/engineers';
import { NewsPage } from '../news/news';
import { approvaldetailPage } from '../approvaldetail/approvaldetail';
import { SupervisionLogPage } from '../supervisionLog/supervisionLog';
import { atestPage } from '../atest/atest';
//import { LogPage } from '../log/log';

import { WeChatApi } from '../../providers/wechatapi';
import { AppConfig } from '../../app/app.config'
import { PubApi } from '../../providers/pubapi';

@Component({
    templateUrl: 'tabs.html'
})
export class TabsPage {
    @ViewChild('myTabs') tabRef: Tabs;
    tab1Root: any;
    tab2Root: any;
    tab3Root: any;
    tab4Root: any;
    tab5Root:any;
    tab6Root:any;
   
    constructor(public platform: Platform, public wechatapi: WeChatApi, public navCtrl: NavController,public pubapi:PubApi) {

     
            this.tab1Root =HomePage ;
            this.tab2Root = EngineersPage;
            this.tab3Root=NewsPage;
             this.tab4Root= SupervisionLogPage;
             this.tab5Root=approvaldetailPage;
                this.tab6Root=atestPage;
             
           
    }

  

}








